const treefuntion=(list,point)=>{
    const arr=[]
    list.forEach(item => {
        if(item.id==point){
            arr.push(item)
            treefuntion()
        }
        
    });

}